<?php
/* @var $this GnuhealthHospitalWardController */
/* @var $model GnuhealthHospitalWard */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'gnuhealth-hospital-ward-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'create_date'); ?>
		<?php echo $form->textField($model,'create_date',array('size'=>6,'maxlength'=>6)); ?>
		<?php echo $form->error($model,'create_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'write_date'); ?>
		<?php echo $form->textField($model,'write_date',array('size'=>6,'maxlength'=>6)); ?>
		<?php echo $form->error($model,'write_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'create_uid'); ?>
		<?php echo $form->textField($model,'create_uid'); ?>
		<?php echo $form->error($model,'create_uid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'write_uid'); ?>
		<?php echo $form->textField($model,'write_uid'); ?>
		<?php echo $form->error($model,'write_uid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ac'); ?>
		<?php echo $form->checkBox($model,'ac'); ?>
		<?php echo $form->error($model,'ac'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'telephone'); ?>
		<?php echo $form->checkBox($model,'telephone'); ?>
		<?php echo $form->error($model,'telephone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'private'); ?>
		<?php echo $form->checkBox($model,'private'); ?>
		<?php echo $form->error($model,'private'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'guest_sofa'); ?>
		<?php echo $form->checkBox($model,'guest_sofa'); ?>
		<?php echo $form->error($model,'guest_sofa'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bio_hazard'); ?>
		<?php echo $form->checkBox($model,'bio_hazard'); ?>
		<?php echo $form->error($model,'bio_hazard'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'unit'); ?>
		<?php echo $form->textField($model,'unit'); ?>
		<?php echo $form->error($model,'unit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'extra_info'); ?>
		<?php echo $form->textArea($model,'extra_info',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'extra_info'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'floor'); ?>
		<?php echo $form->textField($model,'floor'); ?>
		<?php echo $form->error($model,'floor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tv'); ?>
		<?php echo $form->checkBox($model,'tv'); ?>
		<?php echo $form->error($model,'tv'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'microwave'); ?>
		<?php echo $form->checkBox($model,'microwave'); ?>
		<?php echo $form->error($model,'microwave'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'state'); ?>
		<?php echo $form->textField($model,'state'); ?>
		<?php echo $form->error($model,'state'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'number_of_beds'); ?>
		<?php echo $form->textField($model,'number_of_beds'); ?>
		<?php echo $form->error($model,'number_of_beds'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'internet'); ?>
		<?php echo $form->checkBox($model,'internet'); ?>
		<?php echo $form->error($model,'internet'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'private_bathroom'); ?>
		<?php echo $form->checkBox($model,'private_bathroom'); ?>
		<?php echo $form->error($model,'private_bathroom'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'institution'); ?>
		<?php echo $form->textField($model,'institution'); ?>
		<?php echo $form->error($model,'institution'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'refrigerator'); ?>
		<?php echo $form->checkBox($model,'refrigerator'); ?>
		<?php echo $form->error($model,'refrigerator'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'building'); ?>
		<?php echo $form->textField($model,'building'); ?>
		<?php echo $form->error($model,'building'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name'); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'gender'); ?>
		<?php echo $form->textField($model,'gender'); ?>
		<?php echo $form->error($model,'gender'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->